<html>
<head>
<title>300px Body</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #000000}
-->
.error_strings{ font-family:Verdana; font-size:10px; color:#660000;}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (300px Body.jpg) -->

<script language="JavaScript" src="../logic/validation/validation.js" type="text/javascript"></script>
<script language="JavaScript" src="../logic/validation/payment_update.js" type="text/javascript"></script>

<?php 
	$pid=$_GET['edit'];
	
	$startrow=$_GET['startrow'];
	$tag=$_GET['tag'];
	include'../logic/Classes/db.php';
	
	$x=new Dbconnect();
	
	$con=$x->getConnection();
	
	$result=mysql_query("select reg_no,sub_gr from payment where payment_id='$pid' ",$con) or die(mysql_error());  
	?>




<table width="800" height="3" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
	<tr>
		<td><img src="../images/pay_update.gif" width="800" height="69"></td>
	</tr>
	<tr >
	<td height="64" background="../images/2.gif" style="background-repeat:repeat-y"> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
	
      <form id="myForm" onSubmit="return validate()" >
	  <?php while($row=mysql_fetch_array($result)) { ?>
      <tr>
        <td width="123">&nbsp;</td>
        <td width="129" height="25"><div align="right"><strong>Registration No </strong><span class="style1">* </span></div></td>
        <td colspan="5"><input name="txtRegno" type="text" id="txtRegno" value="<?php echo $row['reg_no'];  ?>" onBlur="checkregno()">
          <input type="hidden" name="hiddenField" id="pid" value ="<?php echo $pid;  ?>">
          <input type="hidden" name="hiddenField3" id="tag" value=" <?php echo $tag;  ?>"></td>
        <td width="201">&nbsp;</td>
		<?php $subject=$row['sub_gr'];   }?> 
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="25">&nbsp;</td>
        <td colspan="5"><div id="ajaxDiv1" class="error_strings"></td>
        <td>&nbsp;</td>
      </tr>
	  <?php 
	  
	  
	 
	  $result1=mysql_query("select sub_gr from subject_code",$con);
	  
	  
	      ?>
	  
	  
	  
      <tr>
        <td>&nbsp;</td>
        <td height="25"><div align="right"><strong>Subject Code <span class="style1">*</span></strong></div></td>
        <td colspan="5">
		
		<select name="sltSubgr" id="sltSubgr">
          <?php while($row1=mysql_fetch_array($result1)) {?>
		  <option value="<?php echo $row1['sub_gr'];  ?>" <?php if ($subject==$row1['sub_gr']) { ?> selected="selected" <?php } ?>><?php echo $row1['sub_gr'];  ?></option>
          <?php } ?>
        </select>
          
		  <input type="hidden" name="hiddenField2" id="startrow" value="<?php echo $startrow;?>"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="25">&nbsp;</td>
        <td colspan="5"><div id="ajaxDiv" class="error_strings"></div></td>
        <td>&nbsp;</td>
      </tr>
	  
            <tr>
        <td>&nbsp;</td>
        <td height="25">&nbsp;</td>
        <td width="85" colspan="3"><input type="submit" name="Submit" value="Save" ></td>
        <td width="78"><input type="reset" name="Submit2" value="Back" onClick="backxx()"></td>
        <td width="134">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  </form>

    </table>
	
	</td>
	</tr>
	
	<tr>
		<td>
			<img src="../images/3.gif" width="800" height="40" alt=""></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>